// Hash模式路由
import { createRouter, createWebHashHistory } from "vue-router";
//定义路由规则
const router = createRouter({
    history: createWebHashHistory(), //Hash模式
    routes: [
        //路由重定向
        {path:'/',redirect:'/Home'},
        {path: '/home',component: () => import('./components/Home.vue') },
        {path: '/about',component: () => import('./components/About.vue'),
            children:[
                {path: 'tab1',component: () => import('./components/pages/Tab1.vue') },
                {path: 'tab2',component: () => import('./components/pages/Tab2.vue') },
            ]
        },
         {path: '/mine',component: () => import('./components/mine.vue')}
    ]
})
export default router
